Skip to main content

Sales PDF OCR API

This document outlines the details of the Sales PDF OCR API.

API Description

Objective

The Sales PDF OCR API extracts business critical fields from Sales PDF document and returns it in a JSON format.

InputOutput
A file containing a Sales PDF documentThe textual information extracted from the document

API URL

The URL for the Sales PDF OCR API is:

https://usa-engine.thomas.hyperverge.co/v1/readMCASalesApplication

API Endpoint

The endpoint for the Sales PDF OCR API is:

readMCASalesApplication

Overview

The Sales PDF OCR API is RESTful and uses standard HTTP verbs and status codes. The requests are in form-data format and responses are in JSON format. You should upload all images and files as form-data through a POST request.

Authentication

You need a unique pair of application ID ( appId ) and application key (appKey) from HyperVerge to verify your identity for accessing the Sales PDF OCR API.

API Request Details

Method - POST

Headers

HeaderMandatory / OptionalDescriptionInput Format
content-type MandatoryThis parameter defines the media type for the request payload.multipart/form-data
appIdMandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.Not Applicable - this is a unique value
appKeyMandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.Not Applicable - this is a unique value
transactionIdMandatoryA unique identifier for tracking a user journeyNot Applicable - this should be both unique and easily associated with the user's journey in your application(s)

Input

The following table provides the details of the parameters required for the Sales PDF OCR API's request body:

ParameterMandatory / OptionalTypeDescriptionInput FormatDefault Value
pdfFileMandatoryfileThe file containing the Sales PDF documentPortable Document Format (PDF)Not Applicable

Request

The following code snippet demonstrates a standard curl request for the Sales PDF OCR API:

curl --location --request POST 'https://usa-engine.thomas.hyperverge.co/v1/readMCASalesApplication' \
--header 'Content-Type: multipart/form-data' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--form 'pdfFile=@"<path_to_pdf_file>"'

Document Sample

The following is a sample of a Sales PDF Document:

Sample Sales PDF document for OCR processing

Success Response

The following code snippet demonstrates a success response from the Sales PDF OCR API:

{
"status": "success",
"statusCode": 200,
"result": {
"details": [
{
"fieldsExtracted": {
"businessLegalName": {
"value": "<Business_Legal_Name>",
"score": 1,
"confidence": "High"
},
"businessDBA": {
"value": "<Business_DBA_Name>",
"score": 1,
"confidence": "High"
},
"federalTaxID": {
"value": "<Federal_Tax_ID>",
"score": 1,
"confidence": "High"
},
"companyType": {
"value": "<Company_Type>",
"score": 1,
"confidence": "High"
},
"incorporationDate": {
"value": "<Incorporation_Date_in_MM/DD/YYYY_Format>",
"score": 1,
"confidence": "High"
},
"businessPhone": {
"value": "<Business_Phone_Number>",
"score": 1,
"confidence": "High"
},
"businessEmail": {
"value": "<Business_Email_Address>",
"score": 1,
"confidence": "High"
},
"businessAddress": {
"value": "<Business_Address>",
"score": 1,
"confidence": "High"
},
"businessLocationCity": {
"value": "<Business_City>",
"score": 1,
"confidence": "High"
},
"businessLocationState": {
"value": "<Business_State>",
"score": 1,
"confidence": "High"
},
"businessLocationZipCode": {
"value": "<Business_Zip_Code>",
"score": 1,
"confidence": "High"
},
"businessLocationCountry": {
"value": "<Business_Country>",
"score": 1,
"confidence": "High"
},
"businessDomainName": {
"value": "<Business_Domain_URL>",
"score": 1,
"confidence": "High"
},
"monthlyRevenue": {
"value": "<Monthly_Revenue>",
"score": 1,
"confidence": "High"
},
"annualRevenue": {
"value": "<Annual_Revenue>",
"score": 1,
"confidence": "High"
},
"amountRequested": {
"value": "<Amount_Requested>",
"score": 1,
"confidence": "High"
},
"useOfFunds": {
"value": "<Use_Of_Funds>",
"score": 1,
"confidence": "High"
},
"industryType": {
"value": "<Industry_Type>",
"score": 1,
"confidence": "High"
},
"ownerFirstName": {
"value": "<Owner_First_Name>",
"score": 1,
"confidence": "High"
},
"ownerLastName": {
"value": "<Owner_Last_Name>",
"score": 1,
"confidence": "High"
},
"ownerMobileNumber": {
"value": "<Owner_Mobile_Number>",
"score": 1,
"confidence": "High"
},
"ownerHomeNumber": {
"value": "<Owner_Home_Number>",
"score": 1,
"confidence": "High"
},
"ownerEmail": {
"value": "<Owner's_Email>",
"score": 1,
"confidence": "High"
},
"ownerSocialSecurityNumber": {
"value": "<Owner's_Social_Security_Number>",
"score": 1,
"confidence": "High"
},
"ownerDateOfBirth": {
"value": "<Owner's_Date_Of_Birth_in_MM/DD/YYYY_Format>",
"score": 1,
"confidence": "High"
},
"ownershipPercentage": {
"value": "<Owner's_Percentage_Ownership>",
"score": 1,
"confidence": "High"
},
"ownerAddress": {
"value": "<Owner's_Address>",
"score": 1,
"confidence": "High"
},
"ownerResidenceCity": {
"value": "<Owner's_City>",
"score": 1,
"confidence": "High"
},
"ownerResidenceState": {
"value": "<Owner's_State>",
"score": 1,
"confidence": "High"
},
"ownerResidenceZipCode": {
"value": "<Owner's_Zip_Code>",
"score": 1,
"confidence": "High"
},
"ownerResidenceCountry": {
"value": "<Owner_Country>",
"score": 1,
"confidence": "High"
},
"owner2FirstName": {
"value": "<Second_Owner_First_Name>",
"score": 1,
"confidence": "High"
},
"owner2LastName": {
"value": "<Second_Owner_Last_Name>",
"score": 1,
"confidence": "High"
},
"owner2MobileNumber": {
"value": "<Second_Owner_Mobile_Number>",
"score": 1,
"confidence": "High"
},
"owner2HomeNumber": {
"value": "<Second_Owner_Home_Number>",
"score": 1,
"confidence": "High"
},
"owner2Email": {
"value": "<Second_Owner's_Email_Address>",
"score": 1,
"confidence": "High"
},
"owner2SocialSecurityNumber": {
"value": "<Second_Owner's_Social_Security_Number>",
"score": 1,
"confidence": "High"
},
"owner2DateOfBirth": {
"value": "<Second_Owner_Date_Of_Birth_in_MM/DD/YYYY_Format>",
"score": 1,
"confidence": "High"
},
"owner2OwnershipPercentage": {
"value": "<Second_Owner's_Partnership_Percentage>",
"score": 1,
"confidence": "High"
},
"owner2Address": {
"value": "<Second_Owner's_Address>",
"score": 1,
"confidence": "High"
},
"owner2ResidenceCity": {
"value": "<Second_Owner's_City>",
"score": 1,
"confidence": "High"
},
"owner2ResidenceState": {
"value": "<Second_Owner's_State>",
"score": 1,
"confidence": "High"
},
"owner2ResidenceZipCode": {
"value": "<Second_Owner's_Zip_Code>",
"score": 1,
"confidence": "High"
},
"owner2ResidenceCountry": {
"value": "<Second_Owner_Country>",
"score": 1,
"confidence": "High"
}
},
"signatureValidation": {
"validSignature": "<Valid_Signature_Status>",
"signatureType": "<Signature_Type>"
},
"type": "<Form_Type>"
}
],
"summary": {
"action": "<Summary_Action>",
"details": []
}
},
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Success Response Details

The following table outlines the details of the success response from the Sales PDF OCR API:

ParameterTypeDescription
statusstringStatus of the Sales PDF OCR API response
statusCodeintegerThe HTTP status code of the response
requestIdstringA unique identifier for the request
transactionIdstringA unique transaction identifier
typestringThe type of the form submitted (for example, Sales PDF)
validSignaturestringIndicates if the submitted signature is valid
signatureTypestringThe type of signature used. It can be one of the following: docusign, digital with ip address, physical, or empty
businessLegalNamestringThe registered legal name of the business
businessDBAstringThe 'Doing Business As' name of the business
federalTaxIDstringThe Federal Tax Identification Number of the business
companyTypestringThe type of business entity
businessPhonestringThe contact phone number of the business
businessEmailstringThe contact email address of the business
incorporationDatestringThe date the business was incorporated, in MM/DD/YYYY format
businessAddressstringThe registered address of the business
businessLocationCitystringThe city where the business is located
businessLocationStatestringThe state where the business is located
businessLocationZipCodestringThe ZIP code of the business location
businessLocationCountrystringThe country where the business is located
businessDomainNamestringThe website URL of the business
monthlyRevenuestringThe estimated monthly revenue of the business
annualRevenuestringThe estimated annual revenue of the business
amountRequestedstringThe loan amount requested
useOfFundsstringThe intended use of the requested funds
industryTypestringThe industry classification code of the business
ownerFirstNamestringThe first name of the primary business owner
ownerLastNamestringThe last name of the primary business owner
ownerMobileNumberstringThe mobile phone number of the primary business owner
ownerHomeNumberstringThe home phone number of the primary business owner
ownerEmailstringThe email address of the primary business owner
ownerSocialSecurityNumberstringThe Social Security Number of the primary business owner
ownerDateOfBirthstringThe date of birth of the primary business owner, in MM/DD/YYYY format
ownershipPercentagestringThe percentage of business ownership held by the primary owner
ownerAddressstringThe residential address of the primary business owner
ownerResidenceCitystringThe city of residence of the primary business owner
ownerResidenceStatestringThe state of residence of the primary business owner
ownerResidenceZipCodestringThe ZIP code of the primary business owner's residence
ownerResidenceCountrystringThe country of residence of the primary business owner
owner2FirstNamestringThe first name of the second business owner
owner2LastNamestringThe last name of the second business owner
owner2MobileNumberstringThe mobile phone number of the second business owner
owner2HomeNumberstringThe home phone number of the second business owner
owner2EmailstringThe contact email address of the second business owner
owner2SocialSecurityNumberstringThe social security number of the second business owner
owner2DateOfBirthstringThe date of birth of the second business owner, in MM/DD/YYYY format
owner2OwnershipPercentagestringThe percentage of business ownership held by the second owner
owner2AddressstringThe residential address of the second business owner
owner2ResidenceCitystringThe city of the second business owner's residence
owner2ResidenceStatestringThe state of the second business owner's residence
owner2ResidenceZipCodestringThe ZIP code of the second business owner's residence
owner2ResidenceCountrystringThe country of residence of the second business owner
summaryobjectThe summary object suggests the final action for the user's application. If the sample meets all verification criteria and can be processed without manual intervention, the summary.action field is set to "Pass". If the sample requires further review or manual verification, the summary.action field is set to "Manual_review".
actionstringThe final decision or action taken based on the assessment

Error Responses

The following are some error responses from the Sales PDF OCR API:

{
"status": "failure",
"statusCode": 400,
"error": "Invalid input passed for field 'pdfFile'",
}

Error Response Details

A failure or error response contains a failure status with a relevant status code and error message.
The following table lists all error responses:

Status CodeError MessageError DescriptionError Resolution
400Invalid input passed for field 'pdfFile'The input value is not a valid entryProvide a valid file in the pdfFile field in the request body
400Invalid file type for: 'pdfFile'The input file type is invalidEnsure the uploaded file is in Portable Document Format (PDF)
422Document Not DetectedThe input file in the request is not a valid Sales PDF documentUpload a valid Sales PDF document that matches the expected format
500Internal Server ErrorThere was an error with HyperVerge's server. Please contact the HyperVerge teamContact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: